/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.l4.app.main;

import java.util.Map;
import java.util.TreeMap;

/**
 *
 * @author Thusira
 */
public class PointExtractor {

    public static Map<Integer, Double> getChangingTimings(Map<Integer, Double> map, double threshold) {
        Map<Integer, Double> pointMap = new TreeMap<Integer, Double>();
        for (int i = 0; i < map.size(); i++) {
            if (map.get((i + 1) * 5) >= 50.0) {
                System.out.println((i + 1) * 5+"^^^^^^" + map.get((i + 1) * 5));
                pointMap.put((i + 1) * 5, map.get((i + 1) * 5));
            }
        }
        return pointMap;
    }
}
